<template>
<uni-shadow-root class="view-new-partials-userinfo_head3"><template name="userinfo_head3">
  
  <view class="userinfo_head3">
    <view class="userinfo_head3_gray"></view>
    <view class="userinfo_head3_wrap">
      <image class="userinfo_head3_bg" :src="loginUser.platformUser.headimgurl"></image>
      <block v-if="loginUser"> 
        <view class="userinfo_head3_content">
          <image v-if="loginUser.platformUser.headimgurl" :src="(loginUser.platformUser.headimgurl)+' '" @click="loginOut"></image>
          <image v-else src="https://image1.sansancloud.com/jianzhan/2017_09/24/16/08/58_464.jpg" @click="loginOut"></image>
          <view class="userinfo_head3_name">
              <text @click="loginOut">{{loginUser.platformUser.nickname}}</text>
              <view class="user_level" v-if="loginUser.platformUser.userLevelName" style="background:#fec746" data-link="user_level.html" @click="tolinkUrl">
                <image class="user_level_img" src="https://image1.sansancloud.com/xianhua/2018_12/21/11/18/56_627.jpg"></image>
                <view class="user_level_name">{{loginUser.platformUser.userLevelName}}</view>
              </view>
          </view>
          
        </view>  
      </block>
      <block v-else>
      <view class="userinfo_head3_content" @click="login">
          <image src="https://image1.sansancloud.com/jianzhan/2017_09/24/16/08/58_464.jpg"></image>
          <text>未登录</text>
        </view>
      </block>
    </view>
  </view>
  <view class="userShareEwm" @click="showPoster">
    <image class="userEwmCode" src="https://image1.sansancloud.com/xianhua/2019_1/4/20/42/14_861.jpg?x-oss-process=style/preview_120"></image>
  </view>
  <view class="userBindWxGz" @click="clickWxGz">
    
    <image class="userBindWxGzCode" v-if="(!loginUser.platformUser.openid)" src="https://image1.sansancloud.com/xianhua/2019_6/4/17/16/29_245.jpg?x-oss-process=style/preview_120"></image>
    <image class="userBindWxGzCode" v-else src="https://image1.sansancloud.com/xianhua/2019_8/5/16/30/58_518.jpg?x-oss-process=style/preview_120"></image>
  </view>
</template></uni-shadow-root>
</template>

<script>

global['__wxRoute'] = 'view-new/partials/userinfo_head3'

Component({})

export default global['__wxComponents']['view-new/partials/userinfo_head3']
</script>
<style platform="mp-weixin">

</style>